
import com.xiaoliang.entity.Department;
import com.xiaoliang.mapper.EDDao;
import com.xiaoliang.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;


/**
 * @author XIAOLIANG
 * @ClassName test.java
 * @Description TODO
 * @createTime 2021年03月08日 20:29:00
 */
public class test {

	@Test
	public void test(){

		SqlSession sqlSession = MyBatisUtils.openSession();
		EDDao mapper = sqlSession.getMapper(EDDao.class);
		List<Department> departments = mapper.selectAll();

		for (Department department : departments) {
			System.out.println(department);
		}



	}
}
